import { get } from '@/server/http';
import request from '@/server/request'; // 直接引入 instance

// 编辑请求
export const editUserInfoAPI = data => {
  return get('getuserinfo', data);
};

// 编辑更新
export const editUserInfoUpdateAPI = data => {
  return request({
    method: 'post',
    url: 'infoedit',
    data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
    },
  });
};

// 获取订单列表
export const getOrderListAPI = data => {
  return get('orderlist', data);
};
